package net.ssta.core.util.format;

import java.text.DateFormat;
import java.text.SimpleDateFormat;


public class JavaTimestampFormat extends ValueObjectFormat 
{
	private static DateFormat s_dateFormat_yyyyMMddHHmmss = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public String getString(Object value, String defaultValue)
	{
		return value == null ? defaultValue : s_dateFormat_yyyyMMddHHmmss.format(value);
	}
}
